let mixins = {
    methods: {
        // 数据查询
        searchs() {
            this.$bus.$on("search", (data) => {
                console.log(data);
                this.todata = { ...this.todata, ...data };
                // console.log(this.todata);
                this.list();
            });

            // console.log(this.datas);
        },
        // 数据请求
        async list() {
            let res = await this.$axios({
                method: "post",
                url: "/equip-list",
                data: this.todata,
            });
            // console.log(res);

            this.datas = res.data.data;
        },
        // 查询点击分页效果
        getnumbers(num = "15") {
            this.todata.pageSize = num;
            this.list();
        },
        getpages(page = "1") {
            this.todata.pageNo = page;
            this.list();
        },
    },
}

export default mixins